import request from '@/utils/request'

export function queryListGet(data) {
  return request({
    url: '/screen/findAll',
    method: 'get',  
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

export function queryFollowupNum(data) {
  return request({
    url: '/screen/getFollowupNum',
    method: 'post',
    // params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
/*
 **
*/
export function querySummaryCounts(data) {
  return request({
    url: '/dispatcheACSSummaryCounts',
    method: 'post',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

//基本信息新增接口
export function addbasicinformation(data) {
  return request({
    url: '/api-cus/members/member/insert/web',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//基本信息显示接口
export function echodisplays(data) {
  return request({
    url: '/api-cus/members/member/web',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//行政区下拉选
export function administrativeregion(data) {
  return request({
    url: '/api-fol/otr/FollowYzyComRangeItem/queryOrgClass',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//修改基本信息
export function modifybasicinformation(data) {
  return request({
    url: '/api-cus/members/member/update/web',
    method: 'put',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//随访记录
export function followuprecords(data) {
  return request({
    url: '/api-fol/followYzyPlanPats/condition/page',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//值域接口
export function domaininterface(data) {
  return request({
    url: '/api-fol/comCodeLists/rcode',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//随访计划
export function followupplan(data) {
  return request({
    url: '/api-fol/followYzyPlan/getAllFolYzyPlan',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//医生下拉选
export function thedoctor(data) {
  return request({
    url: '/api-fol/users/all/select',
    method: 'get',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
// 批量导出
export function thebatchexport(data) {
  return request({
    url: '/api-fol/followYzyPlanPats/condition/export',
    method: 'post',
    data: data, 
    responseType: 'blob',
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//取消随访
export function cancelthefollowup(data) {
  return request({
    url: '/api-fol/followYzyPlanPats/followYzyPlanPat/cancel',
    method: 'put',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//查询统计
export function statisticalquery(data) {
  return request({
    url: '/api-fol/followYzyPlanPats/count/type',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
//新增检查信息
export function newdetectioninformation(data) {
  return request({
    url: '/api-jst/recode/insert',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//显示新增检查信息
export function shownewdetection(data) {
  return request({
    url: '/api-jst/recode/selectByPatientIdAndItemName',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//删除检查信息
export function deleteshownewdetection(data) {
  return request({
    url: '/api-jst/recode/deleteorder',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//取值范围接口
export function valuerange(data) {
  return request({
    url: '/api-jst/standard/getNormalServiceRecord',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//新增测量
export function thenewmeasure(data) {
  return request({
    url: '/api-check/dailyTestTotal/createAll',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
//回显数据
export function echothemeasureddata(data) {
  return request({
    url: '/api-check/dailyTestTotal/allNewestOne',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}
// 上传 图片集合 post
// export function upload(formdata){
//   return request({
//     url:'/api-fol/followYzyFileStorages/upload',
//     method:'post',
//     headers:{'content-type':'multipart/form-data'},
//     data:formdata,
//     baseURL:process.env.VUE_APP_BASE_API_DATA_TABLE
//   })
// }
// 上传 图片集合 post
export function upload(formdata, data) {
  return request({
    url: '/api-check/followYzyFileStorages/upload',
    method: 'post',
    headers: { 'content-type': 'multipart/form-data' },
    data: formdata,
    params: data, // createId
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}

// 批量删除图片 delete
export function removeFiles(data){
  return request({
      url: '/api-fol/followYzyFileStorages/delete',
      method: 'delete',
      data: data,
      baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}

// 批量删除图片接口-新 delete
export function removeNewFiles(data){
  return request({
      url: '/api-fol/followYzyMemberMedicalInfoImgFiles',
      method: 'delete',
      data: data,
      baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}

  


